﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"    
    Loaded="UserControl_Loaded"
    xmlns:local="clr-namespace:BrainTechLLC.Silverlight.ClientApplication.Controls"
	x:Class="BrainTechLLC.Silverlight.ClientApplication.Controls.ManageCharacters">
    <Grid Name="LayoutRoot" Width="Auto" HorizontalAlignment="Stretch">
        <StackPanel Orientation="Vertical" Width="Auto" HorizontalAlignment="Stretch">
            <Grid Height="Auto" HorizontalAlignment="Stretch" Width="Auto" Background="#FF1199AA">
                <TextBlock Foreground="Yellow" Text="Available Characters" FontFamily="Verdana" FontSize="12" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
            </Grid>
            <Grid x:Name="LayoutRoot5">
                <ListBox Height="Auto" HorizontalAlignment="Stretch" x:Name="lstGameChars" Width="Auto" VerticalAlignment="Top"
                 Style="{StaticResource ListBoxStyle1}" ItemContainerStyle="{StaticResource ListBoxItemStyle1}"
                 Margin="0,0,0,0" Padding="2,2,2,2">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <Grid Width="Auto" HorizontalAlignment="Stretch">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="100"></ColumnDefinition>
                                    <ColumnDefinition Width="*"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <Button Grid.Column="0" Margin="2,2,2,2" VerticalAlignment="Top" Content="{Binding Path=ShortName}" x:Name="btnViewChar" Click="btnViewChar_Click"
                                                                         Loaded="lstGameChars_Loaded"  HorizontalAlignment="Left" Width="Auto"/>
                                <TextBlock Grid.Column="1" TextWrapping="Wrap" Text="{Binding Path=ThingProperties}" VerticalAlignment="Center" HorizontalAlignment="Left"></TextBlock>
                            </Grid>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </Grid>
        </StackPanel>
    </Grid>
</UserControl>